package com.shuaigef.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * 帖子评论表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("post_say")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PostSay implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    @TableId(value = "say_id", type = IdType.AUTO)
    private Integer sayId;

    /**
     * 帖子ID
     */
    private Integer postId;

    /**
     * 评论用户ID
     */
    private Integer userId;

    /**
     * 父评论ID
     */
    private Integer parentId;

    /**
     * 评论内容
     */
    private String sayContent;

    /**
     * 评论时间
     */
    private LocalDateTime sayTime;

    /**
     * 评论点赞数
     */
    private Integer saySupport;
} 